package genedit.controller;

import genedit.model.Workspace;
import genedit.model.graph.GraphElement;
import genedit.model.graph.Link;

import java.awt.Dimension;
import java.awt.geom.Point2D;

/**
 * vraca instancu veze
 * 
 * @author Igic
 * 
 */
public class LinkCreator implements Creator {
	public GraphElement instantiate(Point2D position, Dimension size) {
		return new Link(Workspace.getInstance().getActiveDocument().getModel(), "Link "
				+ Workspace.getInstance().getActiveDocument().getModel().getElementCount());
	}
}